package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * BE_OrderUser实体类
 * 
 * @author 
 *
 */
public class BeOrderuser {
	/***/
	private Object ID; 
	/***/
	private String OrderNo; 
	/***/
	private String UserName; 
	/***/
	private String Phone; 
	/***/
	private String SMSPhone; 
	/***/
	private String Address; 
	/***/
	private Double ProjectMoney; 
	/***/
	private Double RealMoney; 
	/***/
	private String InvoiceNo; 
	/***/
	private String Formula; 
	/***/
	private String ContractNum; 
	/***/
	private Integer MeterTypeID; 
	/***/
	private String MeterName; 
	/***/
	private Integer MaxValue; 
	/***/
	private Integer StartValue; 
	/***/
	private String MeterFactory; 
	/***/
	private String DocNum; 
	/***/
	private String UserNo; 
	/**
	 * 实例化
	 */
	public BeOrderuser() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public BeOrderuser(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("OrderNo") instanceof String) {
			this.setOrderNo((String) obj.get("OrderNo"));
		}
		if (obj.get("UserName") instanceof String) {
			this.setUserName((String) obj.get("UserName"));
		}
		if (obj.get("Phone") instanceof String) {
			this.setPhone((String) obj.get("Phone"));
		}
		if (obj.get("SMSPhone") instanceof String) {
			this.setSMSPhone((String) obj.get("SMSPhone"));
		}
		if (obj.get("Address") instanceof String) {
			this.setAddress((String) obj.get("Address"));
		}
		if (obj.get("ProjectMoney") instanceof Number) {
			this.setProjectMoney(((Number) obj.get("ProjectMoney")).doubleValue());
		}
		if (obj.get("RealMoney") instanceof Number) {
			this.setRealMoney(((Number) obj.get("RealMoney")).doubleValue());
		}
		if (obj.get("InvoiceNo") instanceof String) {
			this.setInvoiceNo((String) obj.get("InvoiceNo"));
		}
		if (obj.get("Formula") instanceof String) {
			this.setFormula((String) obj.get("Formula"));
		}
		if (obj.get("ContractNum") instanceof String) {
			this.setContractNum((String) obj.get("ContractNum"));
		}
		if (obj.get("MeterTypeID") instanceof Number) {
			this.setMeterTypeID(((Number) obj.get("MeterTypeID")).intValue());
		}
		if (obj.get("MeterName") instanceof String) {
			this.setMeterName((String) obj.get("MeterName"));
		}
		if (obj.get("MaxValue") instanceof Number) {
			this.setMaxValue(((Number) obj.get("MaxValue")).intValue());
		}
		if (obj.get("StartValue") instanceof Number) {
			this.setStartValue(((Number) obj.get("StartValue")).intValue());
		}
		if (obj.get("MeterFactory") instanceof String) {
			this.setMeterFactory((String) obj.get("MeterFactory"));
		}
		if (obj.get("DocNum") instanceof String) {
			this.setDocNum((String) obj.get("DocNum"));
		}
		if (obj.get("UserNo") instanceof String) {
			this.setUserNo((String) obj.get("UserNo"));
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getOrderNo() != null) {
			result.put("OrderNo",this.getOrderNo());
		}
		if (this.getUserName() != null) {
			result.put("UserName",this.getUserName());
		}
		if (this.getPhone() != null) {
			result.put("Phone",this.getPhone());
		}
		if (this.getSMSPhone() != null) {
			result.put("SMSPhone",this.getSMSPhone());
		}
		if (this.getAddress() != null) {
			result.put("Address",this.getAddress());
		}
		if (this.getProjectMoney() != null) {
			result.put("ProjectMoney",this.getProjectMoney());
		}
		if (this.getRealMoney() != null) {
			result.put("RealMoney",this.getRealMoney());
		}
		if (this.getInvoiceNo() != null) {
			result.put("InvoiceNo",this.getInvoiceNo());
		}
		if (this.getFormula() != null) {
			result.put("Formula",this.getFormula());
		}
		if (this.getContractNum() != null) {
			result.put("ContractNum",this.getContractNum());
		}
		if (this.getMeterTypeID() != null) {
			result.put("MeterTypeID",this.getMeterTypeID());
		}
		if (this.getMeterName() != null) {
			result.put("MeterName",this.getMeterName());
		}
		if (this.getMaxValue() != null) {
			result.put("MaxValue",this.getMaxValue());
		}
		if (this.getStartValue() != null) {
			result.put("StartValue",this.getStartValue());
		}
		if (this.getMeterFactory() != null) {
			result.put("MeterFactory",this.getMeterFactory());
		}
		if (this.getDocNum() != null) {
			result.put("DocNum",this.getDocNum());
		}
		if (this.getUserNo() != null) {
			result.put("UserNo",this.getUserNo());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取OrderNo
	 * 
	 * @return
	 */
	public String getOrderNo() {
		return OrderNo;
	}

	/**
	 * 设置OrderNo
	 * 
	 * @param OrderNo
	 */
	public void setOrderNo(String OrderNo) {
		this.OrderNo = OrderNo;
	}
	
	/**
	 * 获取UserName
	 * 
	 * @return
	 */
	public String getUserName() {
		return UserName;
	}

	/**
	 * 设置UserName
	 * 
	 * @param UserName
	 */
	public void setUserName(String UserName) {
		this.UserName = UserName;
	}
	
	/**
	 * 获取Phone
	 * 
	 * @return
	 */
	public String getPhone() {
		return Phone;
	}

	/**
	 * 设置Phone
	 * 
	 * @param Phone
	 */
	public void setPhone(String Phone) {
		this.Phone = Phone;
	}
	
	/**
	 * 获取SMSPhone
	 * 
	 * @return
	 */
	public String getSMSPhone() {
		return SMSPhone;
	}

	/**
	 * 设置SMSPhone
	 * 
	 * @param SMSPhone
	 */
	public void setSMSPhone(String SMSPhone) {
		this.SMSPhone = SMSPhone;
	}
	
	/**
	 * 获取Address
	 * 
	 * @return
	 */
	public String getAddress() {
		return Address;
	}

	/**
	 * 设置Address
	 * 
	 * @param Address
	 */
	public void setAddress(String Address) {
		this.Address = Address;
	}
	
	/**
	 * 获取ProjectMoney
	 * 
	 * @return
	 */
	public Double getProjectMoney() {
		return ProjectMoney;
	}

	/**
	 * 设置ProjectMoney
	 * 
	 * @param ProjectMoney
	 */
	public void setProjectMoney(Double ProjectMoney) {
		this.ProjectMoney = ProjectMoney;
	}
	
	/**
	 * 获取RealMoney
	 * 
	 * @return
	 */
	public Double getRealMoney() {
		return RealMoney;
	}

	/**
	 * 设置RealMoney
	 * 
	 * @param RealMoney
	 */
	public void setRealMoney(Double RealMoney) {
		this.RealMoney = RealMoney;
	}
	
	/**
	 * 获取InvoiceNo
	 * 
	 * @return
	 */
	public String getInvoiceNo() {
		return InvoiceNo;
	}

	/**
	 * 设置InvoiceNo
	 * 
	 * @param InvoiceNo
	 */
	public void setInvoiceNo(String InvoiceNo) {
		this.InvoiceNo = InvoiceNo;
	}
	
	/**
	 * 获取Formula
	 * 
	 * @return
	 */
	public String getFormula() {
		return Formula;
	}

	/**
	 * 设置Formula
	 * 
	 * @param Formula
	 */
	public void setFormula(String Formula) {
		this.Formula = Formula;
	}
	
	/**
	 * 获取ContractNum
	 * 
	 * @return
	 */
	public String getContractNum() {
		return ContractNum;
	}

	/**
	 * 设置ContractNum
	 * 
	 * @param ContractNum
	 */
	public void setContractNum(String ContractNum) {
		this.ContractNum = ContractNum;
	}
	
	/**
	 * 获取MeterTypeID
	 * 
	 * @return
	 */
	public Integer getMeterTypeID() {
		return MeterTypeID;
	}

	/**
	 * 设置MeterTypeID
	 * 
	 * @param MeterTypeID
	 */
	public void setMeterTypeID(Integer MeterTypeID) {
		this.MeterTypeID = MeterTypeID;
	}
	
	/**
	 * 获取MeterName
	 * 
	 * @return
	 */
	public String getMeterName() {
		return MeterName;
	}

	/**
	 * 设置MeterName
	 * 
	 * @param MeterName
	 */
	public void setMeterName(String MeterName) {
		this.MeterName = MeterName;
	}
	
	/**
	 * 获取MaxValue
	 * 
	 * @return
	 */
	public Integer getMaxValue() {
		return MaxValue;
	}

	/**
	 * 设置MaxValue
	 * 
	 * @param MaxValue
	 */
	public void setMaxValue(Integer MaxValue) {
		this.MaxValue = MaxValue;
	}
	
	/**
	 * 获取StartValue
	 * 
	 * @return
	 */
	public Integer getStartValue() {
		return StartValue;
	}

	/**
	 * 设置StartValue
	 * 
	 * @param StartValue
	 */
	public void setStartValue(Integer StartValue) {
		this.StartValue = StartValue;
	}
	
	/**
	 * 获取MeterFactory
	 * 
	 * @return
	 */
	public String getMeterFactory() {
		return MeterFactory;
	}

	/**
	 * 设置MeterFactory
	 * 
	 * @param MeterFactory
	 */
	public void setMeterFactory(String MeterFactory) {
		this.MeterFactory = MeterFactory;
	}
	
	/**
	 * 获取DocNum
	 * 
	 * @return
	 */
	public String getDocNum() {
		return DocNum;
	}

	/**
	 * 设置DocNum
	 * 
	 * @param DocNum
	 */
	public void setDocNum(String DocNum) {
		this.DocNum = DocNum;
	}
	
	/**
	 * 获取UserNo
	 * 
	 * @return
	 */
	public String getUserNo() {
		return UserNo;
	}

	/**
	 * 设置UserNo
	 * 
	 * @param UserNo
	 */
	public void setUserNo(String UserNo) {
		this.UserNo = UserNo;
	}

	@Override
	public String toString() {
		return "BeOrderuser [ID=" + ID + " , OrderNo=" + OrderNo + " , UserName=" + UserName + " , Phone=" + Phone + " , SMSPhone=" + SMSPhone + " , Address=" + Address + " , ProjectMoney=" + ProjectMoney + " , RealMoney=" + RealMoney + " , InvoiceNo=" + InvoiceNo + " , Formula=" + Formula + " , ContractNum=" + ContractNum + " , MeterTypeID=" + MeterTypeID + " , MeterName=" + MeterName + " , MaxValue=" + MaxValue + " , StartValue=" + StartValue + " , MeterFactory=" + MeterFactory + " , DocNum=" + DocNum + " , UserNo=" + UserNo + "  ]";
	
	}
	
	
}
